package com.test.object;

public class Student {
    String name;
    double chinese;
    double math;

    public void printAllScore() {
        System.out.println(name + "的总分是：" + (chinese + math));
    }

    public void printAverageScore() {
        System.out.println(name + "的平均分是：" + (chinese + math)/2);
    }
}
